/*
 * avr_can_board.h
 *
 * Created: 12/1/2013 3:52:31 PM
 *  Author: Mishaal
 */ 


//#ifndef AVR_CAN_BOARD_H_
//#define AVR_CAN_BOARD_H_

#include "compiler.h"
#include <avr/io.h>	//added by mishaal
#include <avr/interrupt.h>	//added by mishaal

/**included by mishaal from config.h file**/
#define FOSC           16000UL        // 16 MHz External cristal
#define F_CPU          (FOSC*1000UL) // Need for AVR GCC

    //---------------- CAN DEFINITION -------------
    #define   CAN_BAUDRATE        500         // Baudrate in kBit
    //#define     CAN_BAUDRATE        CAN_AUTOBAUD

/******************************************/

 //---------------- USART DEFINITION -------------
 #define   UART_BAUDRATE       960         // Baudrate in kBit

 /******************************************/

#define USE_TIMER16 TIMER16_1
//#define USE_TIMER16 TIMER16_3
//#define USE_TIMER16 BOTH_TIMER16

#define USE_TIMER8 TIMER8_0 
//#define USE_TIMER8 TIMER8_2 
//#define USE_TIMER8 BOTH_TIMER8

#define USE_UART UART_0 
//#define USE_UART UART_1
//#define USE_UART BOTH_UART


//! Define PORT for ADC.
#define ADC_PORT_IN        PINF
#define ADC_PORT_DIR       DDRF
#define ADC_PORT_OUT      PORTF
#define ADC_DID_REG       DIDR0



//#endif /* AVR-CAN_BOARD_H_ */